import React, { Component } from 'react';
import Markdown  from 'react-markdown';




class JsPage extends Component {
    constructor(props) {
        super(props);
    }




    render() {

        return (
            <div>
                <Markdown source={"1、React的onClick函数如何传参\n\n" +
                "onClick={this.success.bind(this, {percent})} //展示数字\n" +
                "\n" +
                "    success = (props) => {\n" +
                "        console.log(props);\n" +
                "        message.success(props.percent);\n" +
                "    };"}/>
            </div>
        );
    }
}

export default JsPage;